/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pa165.dominatingspecies.frontend.element;

/**
 * Default algorithm for Enum internationalization. An enum's I18N key is its
 * fully qualified name (class name + '.' + enum value)
 *
 * @author
 */
public class DefaultEnumKeyProvider extends EnumKeyProvider {

    @Override
    public <T extends Enum<T>> String computeKey(T enumValue) {
        return enumValue.getDeclaringClass().getCanonicalName() + "." + enumValue.name();
    }
}
